<?php
namespace app\admin\controller;
use think\Controller;
use think\Request;
use app\admin\model\Admin as AdminModel;
class Admin extends Controller{
    //管理员注册方法
    public function register(){
      $request=Request::instance();
      if($request->method()=='GET'){
          return $this->fetch();
      }else{
        $admin_name=$request->param('adminname');
        $password=$request->param('password');

      }
    }
}